<template>
  <!-- 桩基钢筋合并设置 -->
  <div class="pileFoundation">
    <el-form ref="form" :model="form" :rules="rules">
      <el-row>
        <el-col :span="24">
          <el-form-item
            label="设置带排布图的钢筋笼在制作加工单时钢筋合并范围"
            prop="workArea"
          >
            <el-radio-group v-model="form.workArea">
              <el-row>
                <el-col :span="12">
                  <el-radio class="radio" label="多料单内合并"></el-radio>
                </el-col>
                <el-col :span="12">
                  <el-radio class="radio" label="单料单内合并"></el-radio>
                </el-col>
                <el-col :span="12">
                  <el-radio class="radio" label="单构件内合并"></el-radio>
                </el-col>
                <el-col :span="12">
                  <el-radio class="radio" label="单钢筋笼节合并"></el-radio>
                </el-col>
              </el-row>
            </el-radio-group>
          </el-form-item>
        </el-col>
      </el-row>
    </el-form>
    <div class="submitForm">
      <el-button type="primary" @click="submitForm">保存</el-button>
    </div>
  </div>
</template>

<script>
export default {
  name: "PileFoundation",
  components: {},
  props: {},
  data() {
    return {
      form: {},
      rules: {
        workArea: [{ required: true, message: "不能为空", trigger: "blur" }],
      },
    };
  },
  filters: {},
  computed: {},
  watch: {},
  created() {},
  mounted() {},
  beforeDestroy() {},
  methods: {
    submitForm() {
      this.$refs["form"].validate((valid) => {
        if (valid) {
          console.log(this.form);
        }
      });
    },
  },
};
</script>

<style scoped lang="scss">
.pileFoundation {
  width: 50%;
  .radio {
    margin: 10px 0;
  }
}
</style>
